
<!DOCTYPE html>
<html lang="en">

    <head>

        <meta charset="utf-8">
        <title>敏捷协会在线报名查询系统</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- CSS -->
        <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700'>
        <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Oleo+Script:400,700'>
        <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" href="assets/css/style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

    </head>

    <body>

        <div class="header">
            <div class="container">
                <div class="row">
                    <div class="logo span4">
                        <h1><a href="index.php">敏捷软件协会</a></h1>
                    </div>
                    <div class="links span8">
                        <!--<a class="home" href="" rel="tooltip" data-placement="bottom" data-original-title="Home"></a>
                        <a class="blog" href="" rel="tooltip" data-placement="bottom" data-original-title="Blog"></a>-->
                        <a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=a0480ae4e9da043f3c170bbcbf958149a58a73135deadea7b963d13c287b31be"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="敏捷交流群" title="敏捷交流群"></a>
                    </div>
                </div>
            </div>
        </div>

        <div class="register-container container">
            <div class="row">
                <div class="iphone span5">
                    <img src="assets/img/ren.png" alt="">
                </div>
                <div class="register span6">
                    <form action="" method="post">
                        <h2>敏捷软件协会在线<span class="red"><strong>查询</strong></span></h2>
                        <label for="name">姓名</label>
                        <input type="text" id="name" name="name" placeholder="请输入你的姓名...">

                        <label for="phone">手机号码</label>
                        <input type="text" id="phone" name="phone" placeholder="请输入你的手机号码...">

                        <button type="submit">查询</button>
                        <button type="button" onclick="location.href='index.php';">返回首页</button>
                        
                    </form>
                </div>
            </div>
        </div>
		<div align="center">Copyright &copy; 2015 敏捷软件协会 by Mak <a href="admin/index.php">后台管理</a>
</div>
        <!-- Javascript -->
        <script src="assets/js/jquery-1.8.2.min.js"></script>
        <script src="assets/bootstrap/js/bootstrap.min.js"></script>
        <script src="assets/js/jquery.backstretch.min.js"></script>
        <script src="assets/js/scripts.js"></script>

<!--<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>-->
<?php
include"admin/conn.php";

if ((isset($_POST["name"])) && (isset($_POST["phone"]))){
    //第一步
        /*$conn = @mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);*/
   
    $name=$_POST["name"];
	
	$phone=$_POST["phone"];
	

	
   //第二步选择数据库,设置编码
   /*mysql_select_db(SAE_MYSQL_DB,$conn);
   mysql_query("set names utf8");*/
   $str=mysql_query("select * from mj where name='$name' and phone='$phone'");
    if  (mysql_num_rows($str)>=1)
	{
		
		echo '<script type="text/javascript">
			      alert("你已经报名成功！\n 敏捷交流群：515802990");
				  window.location.href="search.php";
				  </script>';
		
	}
	else
	{
	   
				  
				  
				  echo '<script type="text/javascript">
			      alert("你没有报名哦！赶紧去报名吧！\n 敏捷交流群：515802990");
				  window.location.href="index.php";
				  </script>';
	}
	
	

  mysql_close($conn);}
  
  
  
?>
</body>
</html>